<template>
	<view class="container">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item v-for="item,index in list" :key="index">
				<view class="swiper-item">
					<image :src="'../../static'+item.icon" style="width:100%;height: 240px;"></image>
				</view>
			</swiper-item>
		</swiper>
		<uni-section title="功能列表" type="square">
			<uni-grid :column="5">
				<uni-grid-item v-for="item,index in typeList" :key="index">
					<view style="display: flex; flex-direction: column; align-items: center; padding-top: 10px;">
						<image :src="'../../static/'+item.icon" style="width: 80rpx; height: 80rpx; " mode=""></image>
						<view>{{item.name}}</view>
					</view>
				</uni-grid-item>
			</uni-grid>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				"list": [{
						"id": 1,
						"type": "湖南开放大学",
						"icon": "/images/school1.jpg"
					},
					{
						"id": 2,
						"type": "湖南开放大学",
						"icon": "/images/school2.jpg"
					},
					{
						"id": 3,
						"type": "湖南开放大学",
						"icon": "/images/school3.jpg"
					},
					{
						"id": 4,
						"type": "湖南开放大学",
						"icon": "/images/school4.jpg"
					}
				],
				"typeList": [{
						"id": 1,
						"name": "新闻",
						"icon": "/images/news.png"
					},
					{
						"id": 2,
						"name": "公告",
						"icon": "/images/announcement.png"
					},
					{
						"id": 3,
						"name": "同学",
						"icon": "/images/classmate.png"
					},
					{
						"id": 4,
						"name": "电话",
						"icon": "/images/telephone.png"
					},
					{
						"id": 5,
						"name": "留言",
						"icon": "/images/leaveword.png"
					}
				]
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>